import 'babel-polyfill';
import fastclick from 'fastclick';
import Vue from 'vue';
import '@/common/scss/index.scss';
import $alert from '@/base/alert/index';
import $toast from '@/base/toast/index';
import $confirm from '@/base/confirm/index';
import $picker from '@/base/picker/index';
import loading from '@/base/loading/index';
import Select from 'element-ui';
import BasedragBtn from "@/ldry/group/dragBtn/BaseDragBtn";
import {
  List
} from 'Vant';
import 'vant/lib/index.css';
import Mint from 'mint-ui';
import 'mint-ui/lib/style.css';
import '@/common/scss/mint-ui.scss';


import App from './App';
import router from './router';
import store from './store';
fastclick.attach(document.body);
Vue.config.productionTip = false;
Vue.use(Select);
Vue.use(List);
Vue.use(loading);
Vue.use(Mint);
Vue.component('BasedragBtn', BasedragBtn);

// 定义alert 组件
Vue.prototype.$alert = $alert;
Vue.prototype.$toast = $toast;
Vue.prototype.$confirm = $confirm;
Vue.prototype.$picker = $picker;
/* eslint-disable no-new */
/**
 * @desc 返回上一页
 * */
// Vue.prototype.goBack = function () {
//     this.$router.go(-1);
// };
new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App),
});
